#ifndef _LTC6815_USER_H_
#define _LTC6815_USER_H_

#include "includes.h"

#if AFE_6815_USE

typedef enum SystemState_t
{
	SYS_STATE_OFFLINE = 0,
	SYS_STATE_STOPPED,
	SYS_STATE_FAULT,
	SYS_STATE_ONLINE,
	SYS_STATE_CYCLE_RUNNING
}SystemState_t;

extern SystemState_t SystemState;
extern uint8_t bottv_flg_sampleFinish;
extern uint8_t bottv_num_Ltc6815AliveCnt;
extern uint8_t bottv_flg_balanceEn;

extern void BMSsystemInit(void);
extern void ISR_JobCycle_Pending();
extern void ISR_uart_cmd_timeout(void);

extern void Task_LTC6815_ExecRoutine(void);

#endif

#endif
